home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Path: bl|ack.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |g.c.Subj|ect: Re:|
|00000080| 20 72 65 76 69 73 65 64 | 20 63 6f 64 65 20 6f 66 | revised| code of|
|00000090| 20 63 61 6c 6c 69 6e 67 | 20 61 20 66 75 6e 63 74 | calling| a funct|
|000000a0| 69 6f 6e 20 74 77 69 63 | 65 20 66 72 6f 6d 20 70 |ion twic|e from p|
|000000b0| 72 69 6e 74 66 0a 44 61 | 74 65 3a 20 4d 6f 6e 2c |rintf.Da|te: Mon,|
|000000c0| 20 34 20 4d 61 72 20 31 | 39 39 36 20 31 37 3a 35 | 4 Mar 1|996 17:5|
|000000d0| 31 3a 30 33 20 2d 30 36 | 30 30 0a 4f 72 67 61 6e |1:03 -06|00.Organ|
|000000e0| 69 7a 61 74 69 6f 6e 3a | 20 55 6e 69 76 65 72 73 |ization:| Univers|
|000000f0| 69 74 79 20 6f 66 20 49 | 6f 77 61 2c 20 49 6f 77 |ity of I|owa, Iow|
|00000100| 61 20 43 69 74 79 2c 20 | 49 41 2c 20 55 53 41 0a |a City, |IA, USA.|
|00000110| 44 69 73 74 72 69 62 75 | 74 69 6f 6e 3a 20 77 6f |Distribu|tion: wo|
|00000120| 72 6c 64 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |rld.Mess|age-ID: |
|00000130| 3c 50 69 6e 65 2e 41 33 | 32 2e 33 2e 39 31 2e 39 |<Pine.A3|2.3.91.9|
|00000140| 36 30 33 30 34 31 37 34 | 32 31 35 2e 39 36 32 30 |60304174|215.9620|
|00000150| 39 4a 2d 31 30 30 30 30 | 30 40 62 6c 61 63 6b 2e |9J-10000|0@black.|
|00000160| 77 65 65 67 2e 75 69 6f | 77 61 2e 65 64 75 3e 0a |weeg.uio|wa.edu>.|
|00000170| 52 65 66 65 72 65 6e 63 | 65 73 3a 20 3c 34 68 66 |Referenc|es: <4hf|
|00000180| 73 35 34 24 6b 34 65 40 | 6e 65 77 73 62 66 30 32 |s54$k4e@|newsbf02|
|00000190| 2e 6e 65 77 73 2e 61 6f | 6c 2e 63 6f 6d 3e 0a 4e |.news.ao|l.com>.N|
|000001a0| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|000001b0| 3a 20 62 6c 61 63 6b 2e | 77 65 65 67 2e 75 69 6f |: black.|weeg.uio|
|000001c0| 77 61 2e 65 64 75 0a 4d | 69 6d 65 2d 56 65 72 73 |wa.edu.M|ime-Vers|
|000001d0| 69 6f 6e 3a 20 31 2e 30 | 0a 43 6f 6e 74 65 6e 74 |ion: 1.0|.Content|
|000001e0| 2d 54 79 70 65 3a 20 54 | 45 58 54 2f 50 4c 41 49 |-Type: T|EXT/PLAI|
|000001f0| 4e 3b 20 63 68 61 72 73 | 65 74 3d 55 53 2d 41 53 |N; chars|et=US-AS|
|00000200| 43 49 49 0a 58 2d 53 65 | 6e 64 65 72 3a 20 72 6f |CII.X-Se|nder: ro|
|00000210| 62 69 6e 73 6f 6e 40 62 | 6c 61 63 6b 2e 77 65 65 |binson@b|lack.wee|
|00000220| 67 2e 75 69 6f 77 61 2e | 65 64 75 0a 49 6e 2d 52 |g.uiowa.|edu.In-R|
|00000230| 65 70 6c 79 2d 54 6f 3a | 20 3c 34 68 66 73 35 34 |eply-To:| <4hfs54|
|00000240| 24 6b 34 65 40 6e 65 77 | 73 62 66 30 32 2e 6e 65 |$k4e@new|sbf02.ne|
|00000250| 77 73 2e 61 6f 6c 2e 63 | 6f 6d 3e 20 0a 0a 4f 6e |ws.aol.c|om> ..On|
|00000260| 20 34 20 4d 61 72 20 31 | 39 39 36 2c 20 52 61 7a | 4 Mar 1|996, Raz|
|00000270| 69 6e 65 20 77 72 6f 74 | 65 3a 0a 0a 3e 20 48 65 |ine wrot|e:..> He|
|00000280| 72 65 20 69 73 20 74 68 | 65 20 61 63 74 75 61 6c |re is th|e actual|
|00000290| 20 63 6f 64 65 20 2c 20 | 6d 6f 64 69 66 69 65 64 | code , |modified|
|000002a0| 20 77 69 74 68 20 65 76 | 65 72 79 6f 6e 65 27 73 | with ev|eryone's|
|000002b0| 20 73 75 67 67 65 73 74 | 69 6f 6e 73 2e 20 20 48 | suggest|ions. H|
|000002c0| 6f 77 65 76 65 72 0a 3e | 20 74 68 65 72 65 20 69 |owever.>| there i|
|000002d0| 73 20 73 74 69 6c 6c 20 | 61 20 62 75 67 20 69 6e |s still |a bug in|
|000002e0| 20 68 65 72 65 20 73 6f | 6d 65 77 68 65 72 65 2e | here so|mewhere.|
|000002f0| 20 20 43 61 6e 20 61 6e | 79 6f 6e 65 20 70 6c 65 | Can an|yone ple|
|00000300| 61 73 65 20 65 78 70 6c | 61 69 6e 20 77 68 61 74 |ase expl|ain what|
|00000310| 20 69 73 0a 3e 20 77 72 | 6f 6e 67 20 77 69 74 68 | is.> wr|ong with|
|00000320| 20 74 68 69 73 2e 0a 0a | 20 20 59 6f 75 27 72 65 | this...| You're|
|00000330| 20 72 65 74 75 72 6e 69 | 6e 67 20 61 20 70 6f 69 | returni|ng a poi|
|00000340| 6e 74 65 72 20 74 6f 20 | 61 6e 20 61 75 74 6f 6d |nter to |an autom|
|00000350| 61 74 69 63 20 76 61 72 | 69 61 62 6c 65 2c 20 77 |atic var|iable, w|
|00000360| 68 69 63 68 20 69 73 20 | 0a 67 75 61 72 61 6e 74 |hich is |.guarant|
|00000370| 65 65 64 20 62 61 64 20 | 6e 65 77 73 2e 0a 0a 3e |eed bad |news...>|
|00000380| 20 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f | #includ|e <stdio|
|00000390| 2e 68 3e 0a 3e 20 23 69 | 6e 63 6c 75 64 65 20 3c |.h>.> #i|nclude <|
|000003a0| 73 74 72 69 6e 67 2e 68 | 3e 0a 3e 20 0a 3e 20 63 |string.h|>.> .> c|
|000003b0| 68 61 72 20 2a 64 69 73 | 70 6c 61 79 5f 64 72 75 |har *dis|play_dru|
|000003c0| 67 5f 74 79 70 65 28 69 | 6e 74 20 64 72 75 67 5f |g_type(i|nt drug_|
|000003d0| 69 6e 64 65 78 29 3b 0a | 3e 20 0a 3e 20 69 6e 74 |index);.|> .> int|
|000003e0| 20 64 72 75 67 5f 69 6e | 76 65 6e 74 6f 72 79 5b | drug_in|ventory[|
|000003f0| 35 5d 3d 7b 30 2c 31 2c | 30 2c 30 2c 30 7d 3b 0a |5]={0,1,|0,0,0};.|
|00000400| 3e 20 0a 3e 20 69 6e 74 | 20 6d 61 69 6e 28 29 20 |> .> int| main() |
|00000410| 7b 0a 3e 20 0a 3e 20 20 | 20 20 20 70 72 69 6e 74 |{.> .> | print|
|00000420| 66 28 22 5b 31 5d 20 25 | 73 20 20 20 20 20 20 20 |f("[1] %|s |
|00000430| 20 20 20 20 20 20 5b 32 | 5d 20 25 73 20 20 0a 3e | [2|] %s .>|
|00000440| 20 5c 6e 22 2c 64 69 73 | 70 6c 61 79 5f 64 72 75 | \n",dis|play_dru|
|00000450| 67 5f 74 79 70 65 28 30 | 29 2c 64 69 73 70 6c 61 |g_type(0|),displa|
|00000460| 79 5f 64 72 75 67 5f 74 | 79 70 65 28 31 29 29 3b |y_drug_t|ype(1));|
|00000470| 0a 0a 20 20 54 68 69 73 | 20 77 6f 6e 27 74 20 63 |.. This| won't c|
|00000480| 6f 6d 70 69 6c 65 2e 20 | 20 54 72 79 0a 0a 20 20 |ompile. | Try.. |
|00000490| 20 20 20 20 70 72 69 6e | 74 66 28 22 5b 31 5d 20 | prin|tf("[1] |
|000004a0| 25 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 5b |%s | [|
|000004b0| 32 5d 20 25 73 5c 6e 22 | 2c 20 2f 2a 20 62 6f 74 |2] %s\n"|, /* bot|
|000004c0| 68 20 71 75 6f 74 65 73 | 20 6f 6e 20 73 61 6d 65 |h quotes| on same|
|000004d0| 20 6c 69 6e 65 20 2a 2f | 0a 09 09 64 69 73 70 6c | line */|...displ|
|000004e0| 61 79 5f 64 72 75 67 5f | 74 79 70 65 28 30 29 2c |ay_drug_|type(0),|
|000004f0| 20 64 69 73 70 6c 61 79 | 5f 64 72 75 67 5f 74 79 | display|_drug_ty|
|00000500| 70 65 28 31 29 29 3b 0a | 0a 3e 20 72 65 74 75 72 |pe(1));.|.> retur|
|00000510| 6e 20 30 3b 0a 3e 20 20 | 20 20 20 20 20 20 20 7d |n 0;.> | }|
|00000520| 0a 3e 20 0a 3e 20 63 68 | 61 72 20 2a 64 69 73 70 |.> .> ch|ar *disp|
|00000530| 6c 61 79 5f 64 72 75 67 | 5f 74 79 70 65 28 69 6e |lay_drug|_type(in|
|00000540| 74 20 64 72 75 67 5f 69 | 6e 64 65 78 29 20 7b 0a |t drug_i|ndex) {.|
|00000550| 3e 20 20 20 20 63 68 61 | 72 20 64 72 75 67 5f 74 |> cha|r drug_t|
|00000560| 79 70 65 5b 38 31 5d 3d | 22 5c 30 22 3b 0a 0a 20 |ype[81]=|"\0";.. |
|00000570| 20 6d 61 6b 65 20 74 68 | 69 73 0a 20 20 20 20 20 | make th|is. |
|00000580| 73 74 61 74 69 63 20 63 | 68 61 72 20 64 72 75 67 |static c|har drug|
|00000590| 5f 74 79 70 65 5b 38 31 | 5d 3b 20 20 2f 2a 20 73 |_type[81|]; /* s|
|000005a0| 74 61 74 69 63 20 76 61 | 72 69 61 62 6c 65 73 20 |tatic va|riables |
|000005b0| 61 72 65 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |are auto|maticall|
|000005c0| 79 0a 09 09 09 09 20 20 | 69 6e 69 74 69 61 6c 69 |y..... |initiali|
|000005d0| 7a 65 64 20 74 6f 20 30 | 2c 20 61 6e 64 20 69 74 |zed to 0|, and it|
|000005e0| 27 73 20 73 61 66 65 20 | 74 6f 0a 09 09 09 09 20 |'s safe |to..... |
|000005f0| 20 72 65 74 75 72 6e 20 | 74 68 65 69 72 20 61 64 | return |their ad|
|00000600| 64 72 65 73 73 65 73 20 | 2d 2d 20 74 68 65 79 20 |dresses |-- they |
|00000610| 22 70 65 72 73 69 73 74 | 22 20 2a 2f 0a 0a 3e 20 |"persist|" */..> |
|00000620| 0a 3e 20 20 20 20 73 77 | 69 74 63 68 28 64 72 75 |.> sw|itch(dru|
|00000630| 67 5f 69 6e 76 65 6e 74 | 6f 72 79 5b 64 72 75 67 |g_invent|ory[drug|
|00000640| 5f 69 6e 64 65 78 5d 29 | 20 7b 0a 3e 20 20 20 20 |_index])| {.> |
|00000650| 20 20 63 61 73 65 20 30 | 20 3a 20 73 74 72 63 70 | case 0| : strcp|
|00000660| 79 28 64 72 75 67 5f 74 | 79 70 65 2c 22 4e 4f 4e |y(drug_t|ype,"NON|
|00000670| 45 22 29 3b 20 62 72 65 | 61 6b 3b 0a 3e 20 20 20 |E"); bre|ak;.> |
|00000680| 20 20 20 63 61 73 65 20 | 31 20 3a 20 73 74 72 63 | case |1 : strc|
|00000690| 70 79 28 64 72 75 67 5f | 74 79 70 65 2c 22 41 73 |py(drug_|type,"As|
|000006a0| 70 72 69 6e 22 29 3b 20 | 62 72 65 61 6b 3b 0a 0a |prin"); |break;..|
|000006b0| 20 20 53 70 65 6c 6c 65 | 64 20 22 61 73 70 69 72 | Spelle|d "aspir|
|000006c0| 69 6e 2e 22 20 3a 2d 29 | 0a 0a 3e 20 20 20 20 20 |in." :-)|..> |
|000006d0| 20 64 65 66 61 75 6c 74 | 20 3a 20 70 72 69 6e 74 | default| : print|
|000006e0| 66 28 22 45 72 72 6f 72 | 20 69 6e 20 44 69 73 70 |f("Error| in Disp|
|000006f0| 6c 61 79 5f 64 72 75 67 | 5f 69 6e 76 65 6e 74 6f |lay_drug|_invento|
|00000700| 72 79 22 29 3b 0a 3e 20 | 09 09 09 09 09 09 7d 0a |ry");.> |......}.|
|00000710| 3e 20 20 20 20 72 65 74 | 75 72 6e 20 64 72 75 67 |> ret|urn drug|
|00000720| 5f 74 79 70 65 3b 0a 3e | 20 7d 0a 0a 20 2d 2d 4a |_type;.>| }.. --J|
|00000730| 61 6d 65 73 20 52 6f 62 | 69 6e 73 6f 6e 20 28 72 |ames Rob|inson (r|
|00000740| 6f 62 69 6e 73 6f 6e 40 | 63 73 2e 75 69 6f 77 61 |obinson@|cs.uiowa|
|00000750| 2e 65 64 75 20 2d 6f 72 | 2d 20 6a 61 6d 65 73 2d |.edu -or|- james-|
|00000760| 72 6f 62 69 6e 73 6f 6e | 40 75 69 6f 77 61 2e 65 |robinson|@uiowa.e|
|00000770| 64 75 29 0a 2f 2a 20 20 | 20 49 6e 64 65 65 64 2c |du)./* | Indeed,|
|00000780| 20 43 2b 2b 20 69 73 20 | 61 20 62 69 74 20 6f 66 | C++ is |a bit of|
|00000790| 20 61 6e 20 6f 64 64 62 | 61 6c 6c 20 6f 66 20 61 | an oddb|all of a|
|000007a0| 20 6c 61 6e 67 75 61 67 | 65 20 2e 2e 2e 20 67 69 | languag|e ... gi|
|000007b0| 76 65 6e 20 74 68 65 20 | 77 61 79 20 74 68 61 74 |ven the |way that|
|000007c0| 20 2a 0a 20 2a 20 69 74 | 20 72 65 71 75 69 72 65 | *. * it| require|
|000007d0| 73 20 70 72 69 76 61 74 | 65 20 70 61 72 74 73 20 |s privat|e parts |
|000007e0| 74 6f 20 62 65 20 76 69 | 73 69 62 6c 65 2e 20 20 |to be vi|sible. |
|000007f0| 54 68 69 73 20 69 6e 63 | 72 65 61 73 65 73 20 74 |This inc|reases t|
|00000800| 68 65 20 73 74 72 65 6e | 67 74 68 20 6f 66 20 20 |he stren|gth of |
|00000810| 2a 0a 20 2a 20 63 6f 75 | 70 6c 69 6e 67 20 64 72 |*. * cou|pling dr|
|00000820| 61 6d 61 74 69 63 61 6c | 6c 79 2e 2e 2e 20 20 20 |amatical|ly... |
|00000830| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000840| 20 20 20 20 2d 2d 20 44 | 72 2e 20 52 69 63 68 20 | -- D|r. Rich |
|00000850| 41 72 74 79 6d 20 20 20 | 20 20 20 20 20 20 20 2a |Artym | *|
|00000860| 2f 0a | |/. | |
+--------+-------------------------+-------------------------+--------+--------+